<template>
  <div class="about">
   <el-container>
      <el-header>
        <myhead></myhead>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <div><mymenu/></div>
        </el-aside>
        <el-container>
          <el-main>
            <!-- 组件形式 是写死的页面 它不会发生改变 -->
            <!-- <Context></Context> -->
            <!-- 二级路由出口：写在一级路由渲染出来的页面里面 -->
            <router-view></router-view>
          </el-main>
          <el-footer>
            <pageinfo></pageinfo>
          </el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
//1. 声子
import myhead from '@/components/system/myhead.vue'
import mymenu from '@/components/system/mymenu'
import Context from '@/components/system/context.vue';
import Pageinfo from '@/components/system/pageinfo.vue';
  export default {
    //2.挂子
    components:{
      // 冒号左边 表示当前页面的别名  右边 表示import上写的名字
      myhead,
      mymenu,
      Context,
        Pageinfo,
    }
  };
</script>
<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    /* line-height: 200px; */
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    /* line-height: 160px; */
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    /* line-height: 260px; */
  }
  
  .el-container:nth-child(7) .el-aside {
    /* line-height: 320px; */
  }
</style>